package com.nanfang51g3.ckz.ui.home;

import android.content.Context;

import com.nanfang51g3.ckz.ui.base.IPresenter;
import com.nanfang51g3.ckz.widget.progress.NumberProgressBar;

import java.io.File;

/**
 * Created by Administrator on 2016/4/13.
 */
public interface HomeMainContract {

    interface View {
        Context getContext();

        void showDialog(String versionName, String apkUrl);

        void updateProgress(long numberProgress);

        void installationApk(File file);

        void noUpdatesVersionCode(String message);

    }


    interface HomeMainActionsListener extends IPresenter {

        void isDownloadApk(String versionCode, String versionName,boolean isShowMessage);

        void downloadApk(String versionName, String apkUrl, NumberProgressBar progressBar);

    }
}
